package edu.lingnan.lmlibrary.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 张晓航
 * @since 2022-02-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("t_seat")
@ApiModel("座位信息")
public class Seat implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 编号（自增）
     */
    @ApiModelProperty(value = "座位编号")
    @JsonProperty("seatId")
    @TableId(value = "seat_id", type = IdType.AUTO)
    private Integer seatId;

    /**
     * 座位状态(1代表可以预约,0代表不可预约)
     */
    @JsonProperty("seatStatus")
    @ApiModelProperty("座位状态，1代表可以预约，0代表已经被预约")
    private String seatStatus;

    /**
     * 座位对应的桌子
     */
    @JsonProperty("dId")
    @ApiModelProperty(value = "座位对应的桌子编号")
    private Integer dId;

    /**
     * 座位号
     */
    @JsonProperty("seatNum")
    @ApiModelProperty(value = "座位号")
    private Integer seatNum;


}
